#define ElemType int

typedef struct ListNode List_Node;

void rotate(int** matrix, int matrixSize, int* matrixColSize);

#include "common.h"

int main()
{
	return 0;
}

void rotate(int** matrix, int matrixSize, int* matrixColSize)
{
	for (int i = 0, len_i = matrixSize / 2; i < len_i; i++)
		for (int j = 0, len_j = (matrixSize + 1) / 2; j < len_j; j++) {
			int temp = matrix[i][j];
			matrix[i][j] = matrix[matrixSize - j - 1][i];
			matrix[matrixSize - j - 1][i] = matrix[matrixSize - i - 1][matrixSize - j - 1];
			matrix[matrixSize - i - 1][matrixSize - j - 1] = matrix[j][matrixSize - i - 1];
			matrix[j][matrixSize - i - 1] = temp;
		}
}
